/**
 * Copyright &copy; 2015-2020 <a href="http://www.easyhis.com/">easyhis</a> All rights reserved.
 */
package com.easy.dfcapi.entity;

import com.easy.common.utils.excel.annotation.ExcelField;
import com.easy.core.persistence.BaseEntity;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 厂家活动报名的产品表Entity
 * @author waylen chi
 * @version 2018-01-11
 */
public class ApiActivityProduct extends BaseEntity<ApiActivityProduct> {
	
	private static final long serialVersionUID = 1L;
	private String id;		// UUID
	private Integer activityPdId;		// ID
	private Integer storeId;		// 店铺ID
	private Integer enrollId;		// 报名ID
	private Integer productId;		// 产品ID
	private BigDecimal price;		// 活动价格
	private Integer num;		// 活动数量
	private String remarks;		// 备注
	private String status;		// 0-正常，1-撤回
	
	public ApiActivityProduct() {
		super();
	}

	public ApiActivityProduct(String id){
		this.id = id;
	}

	@NotNull(message="ID不能为空")
	@ExcelField(title="ID", align=2, sort=0)
	public Integer getActivityPdId() {
		return activityPdId;
	}

	public void setActivityPdId(Integer activityPdId) {
		this.activityPdId = activityPdId;
	}
	
	@ExcelField(title="店铺ID", align=2, sort=1)
	public Integer getStoreId() {
		return storeId;
	}

	public void setStoreId(Integer storeId) {
		this.storeId = storeId;
	}
	
	@ExcelField(title="报名ID", align=2, sort=2)
	public Integer getEnrollId() {
		return enrollId;
	}

	public void setEnrollId(Integer enrollId) {
		this.enrollId = enrollId;
	}
	
	@ExcelField(title="产品ID", align=2, sort=3)
	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}
	
	@ExcelField(title="活动价格", align=2, sort=4)
	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	
	@ExcelField(title="活动数量", align=2, sort=5)
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}
	
	@ExcelField(title="备注", align=2, sort=6)
	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
	@ExcelField(title="0-正常，1-撤回", align=2, sort=7)
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}